package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceMessageMapper;
import com.ruoyi.system.domain.InvoiceMessage;
import com.ruoyi.system.service.IInvoiceMessageService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
@Service
public class InvoiceMessageServiceImpl implements IInvoiceMessageService 
{
    @Autowired
    private InvoiceMessageMapper invoiceMessageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public InvoiceMessage selectInvoiceMessageById(Long id)
    {
        return invoiceMessageMapper.selectInvoiceMessageById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param invoiceMessage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<InvoiceMessage> selectInvoiceMessageList(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.selectInvoiceMessageList(invoiceMessage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param invoiceMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertInvoiceMessage(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.insertInvoiceMessage(invoiceMessage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param invoiceMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateInvoiceMessage(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.updateInvoiceMessage(invoiceMessage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceMessageByIds(Long[] ids)
    {
        return invoiceMessageMapper.deleteInvoiceMessageByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteInvoiceMessageById(Long id)
    {
        return invoiceMessageMapper.deleteInvoiceMessageById(id);
    }
}
